package com.opal.modules.essence.entity;

import java.util.ArrayList;
import java.util.List;

public class StockInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StockInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStockIdIsNull() {
            addCriterion("stock_id is null");
            return (Criteria) this;
        }

        public Criteria andStockIdIsNotNull() {
            addCriterion("stock_id is not null");
            return (Criteria) this;
        }

        public Criteria andStockIdEqualTo(String value) {
            addCriterion("stock_id =", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotEqualTo(String value) {
            addCriterion("stock_id <>", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdGreaterThan(String value) {
            addCriterion("stock_id >", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdGreaterThanOrEqualTo(String value) {
            addCriterion("stock_id >=", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdLessThan(String value) {
            addCriterion("stock_id <", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdLessThanOrEqualTo(String value) {
            addCriterion("stock_id <=", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdLike(String value) {
            addCriterion("stock_id like", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotLike(String value) {
            addCriterion("stock_id not like", value, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdIn(List<String> values) {
            addCriterion("stock_id in", values, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotIn(List<String> values) {
            addCriterion("stock_id not in", values, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdBetween(String value1, String value2) {
            addCriterion("stock_id between", value1, value2, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockIdNotBetween(String value1, String value2) {
            addCriterion("stock_id not between", value1, value2, "stockId");
            return (Criteria) this;
        }

        public Criteria andStockDateIsNull() {
            addCriterion("stock_date is null");
            return (Criteria) this;
        }

        public Criteria andStockDateIsNotNull() {
            addCriterion("stock_date is not null");
            return (Criteria) this;
        }

        public Criteria andStockDateEqualTo(String value) {
            addCriterion("stock_date =", value, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateNotEqualTo(String value) {
            addCriterion("stock_date <>", value, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateGreaterThan(String value) {
            addCriterion("stock_date >", value, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateGreaterThanOrEqualTo(String value) {
            addCriterion("stock_date >=", value, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateLessThan(String value) {
            addCriterion("stock_date <", value, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateLessThanOrEqualTo(String value) {
            addCriterion("stock_date <=", value, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateLike(String value) {
            addCriterion("stock_date like", value, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateNotLike(String value) {
            addCriterion("stock_date not like", value, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateIn(List<String> values) {
            addCriterion("stock_date in", values, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateNotIn(List<String> values) {
            addCriterion("stock_date not in", values, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateBetween(String value1, String value2) {
            addCriterion("stock_date between", value1, value2, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockDateNotBetween(String value1, String value2) {
            addCriterion("stock_date not between", value1, value2, "stockDate");
            return (Criteria) this;
        }

        public Criteria andStockCodeIsNull() {
            addCriterion("stock_code is null");
            return (Criteria) this;
        }

        public Criteria andStockCodeIsNotNull() {
            addCriterion("stock_code is not null");
            return (Criteria) this;
        }

        public Criteria andStockCodeEqualTo(String value) {
            addCriterion("stock_code =", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeNotEqualTo(String value) {
            addCriterion("stock_code <>", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeGreaterThan(String value) {
            addCriterion("stock_code >", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeGreaterThanOrEqualTo(String value) {
            addCriterion("stock_code >=", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeLessThan(String value) {
            addCriterion("stock_code <", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeLessThanOrEqualTo(String value) {
            addCriterion("stock_code <=", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeLike(String value) {
            addCriterion("stock_code like", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeNotLike(String value) {
            addCriterion("stock_code not like", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeIn(List<String> values) {
            addCriterion("stock_code in", values, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeNotIn(List<String> values) {
            addCriterion("stock_code not in", values, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeBetween(String value1, String value2) {
            addCriterion("stock_code between", value1, value2, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeNotBetween(String value1, String value2) {
            addCriterion("stock_code not between", value1, value2, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockBatchIsNull() {
            addCriterion("stock_batch is null");
            return (Criteria) this;
        }

        public Criteria andStockBatchIsNotNull() {
            addCriterion("stock_batch is not null");
            return (Criteria) this;
        }

        public Criteria andStockBatchEqualTo(String value) {
            addCriterion("stock_batch =", value, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchNotEqualTo(String value) {
            addCriterion("stock_batch <>", value, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchGreaterThan(String value) {
            addCriterion("stock_batch >", value, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchGreaterThanOrEqualTo(String value) {
            addCriterion("stock_batch >=", value, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchLessThan(String value) {
            addCriterion("stock_batch <", value, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchLessThanOrEqualTo(String value) {
            addCriterion("stock_batch <=", value, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchLike(String value) {
            addCriterion("stock_batch like", value, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchNotLike(String value) {
            addCriterion("stock_batch not like", value, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchIn(List<String> values) {
            addCriterion("stock_batch in", values, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchNotIn(List<String> values) {
            addCriterion("stock_batch not in", values, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchBetween(String value1, String value2) {
            addCriterion("stock_batch between", value1, value2, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockBatchNotBetween(String value1, String value2) {
            addCriterion("stock_batch not between", value1, value2, "stockBatch");
            return (Criteria) this;
        }

        public Criteria andStockNumIsNull() {
            addCriterion("stock_num is null");
            return (Criteria) this;
        }

        public Criteria andStockNumIsNotNull() {
            addCriterion("stock_num is not null");
            return (Criteria) this;
        }

        public Criteria andStockNumEqualTo(String value) {
            addCriterion("stock_num =", value, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumNotEqualTo(String value) {
            addCriterion("stock_num <>", value, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumGreaterThan(String value) {
            addCriterion("stock_num >", value, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumGreaterThanOrEqualTo(String value) {
            addCriterion("stock_num >=", value, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumLessThan(String value) {
            addCriterion("stock_num <", value, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumLessThanOrEqualTo(String value) {
            addCriterion("stock_num <=", value, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumLike(String value) {
            addCriterion("stock_num like", value, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumNotLike(String value) {
            addCriterion("stock_num not like", value, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumIn(List<String> values) {
            addCriterion("stock_num in", values, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumNotIn(List<String> values) {
            addCriterion("stock_num not in", values, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumBetween(String value1, String value2) {
            addCriterion("stock_num between", value1, value2, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockNumNotBetween(String value1, String value2) {
            addCriterion("stock_num not between", value1, value2, "stockNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumIsNull() {
            addCriterion("stock_must_num is null");
            return (Criteria) this;
        }

        public Criteria andStockMustNumIsNotNull() {
            addCriterion("stock_must_num is not null");
            return (Criteria) this;
        }

        public Criteria andStockMustNumEqualTo(String value) {
            addCriterion("stock_must_num =", value, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumNotEqualTo(String value) {
            addCriterion("stock_must_num <>", value, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumGreaterThan(String value) {
            addCriterion("stock_must_num >", value, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumGreaterThanOrEqualTo(String value) {
            addCriterion("stock_must_num >=", value, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumLessThan(String value) {
            addCriterion("stock_must_num <", value, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumLessThanOrEqualTo(String value) {
            addCriterion("stock_must_num <=", value, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumLike(String value) {
            addCriterion("stock_must_num like", value, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumNotLike(String value) {
            addCriterion("stock_must_num not like", value, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumIn(List<String> values) {
            addCriterion("stock_must_num in", values, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumNotIn(List<String> values) {
            addCriterion("stock_must_num not in", values, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumBetween(String value1, String value2) {
            addCriterion("stock_must_num between", value1, value2, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockMustNumNotBetween(String value1, String value2) {
            addCriterion("stock_must_num not between", value1, value2, "stockMustNum");
            return (Criteria) this;
        }

        public Criteria andStockClassifyIsNull() {
            addCriterion("stock_classify is null");
            return (Criteria) this;
        }

        public Criteria andStockClassifyIsNotNull() {
            addCriterion("stock_classify is not null");
            return (Criteria) this;
        }

        public Criteria andStockClassifyEqualTo(String value) {
            addCriterion("stock_classify =", value, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyNotEqualTo(String value) {
            addCriterion("stock_classify <>", value, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyGreaterThan(String value) {
            addCriterion("stock_classify >", value, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyGreaterThanOrEqualTo(String value) {
            addCriterion("stock_classify >=", value, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyLessThan(String value) {
            addCriterion("stock_classify <", value, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyLessThanOrEqualTo(String value) {
            addCriterion("stock_classify <=", value, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyLike(String value) {
            addCriterion("stock_classify like", value, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyNotLike(String value) {
            addCriterion("stock_classify not like", value, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyIn(List<String> values) {
            addCriterion("stock_classify in", values, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyNotIn(List<String> values) {
            addCriterion("stock_classify not in", values, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyBetween(String value1, String value2) {
            addCriterion("stock_classify between", value1, value2, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockClassifyNotBetween(String value1, String value2) {
            addCriterion("stock_classify not between", value1, value2, "stockClassify");
            return (Criteria) this;
        }

        public Criteria andStockUnitIsNull() {
            addCriterion("stock_unit is null");
            return (Criteria) this;
        }

        public Criteria andStockUnitIsNotNull() {
            addCriterion("stock_unit is not null");
            return (Criteria) this;
        }

        public Criteria andStockUnitEqualTo(String value) {
            addCriterion("stock_unit =", value, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitNotEqualTo(String value) {
            addCriterion("stock_unit <>", value, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitGreaterThan(String value) {
            addCriterion("stock_unit >", value, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitGreaterThanOrEqualTo(String value) {
            addCriterion("stock_unit >=", value, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitLessThan(String value) {
            addCriterion("stock_unit <", value, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitLessThanOrEqualTo(String value) {
            addCriterion("stock_unit <=", value, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitLike(String value) {
            addCriterion("stock_unit like", value, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitNotLike(String value) {
            addCriterion("stock_unit not like", value, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitIn(List<String> values) {
            addCriterion("stock_unit in", values, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitNotIn(List<String> values) {
            addCriterion("stock_unit not in", values, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitBetween(String value1, String value2) {
            addCriterion("stock_unit between", value1, value2, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockUnitNotBetween(String value1, String value2) {
            addCriterion("stock_unit not between", value1, value2, "stockUnit");
            return (Criteria) this;
        }

        public Criteria andStockPositionIsNull() {
            addCriterion("stock_position is null");
            return (Criteria) this;
        }

        public Criteria andStockPositionIsNotNull() {
            addCriterion("stock_position is not null");
            return (Criteria) this;
        }

        public Criteria andStockPositionEqualTo(String value) {
            addCriterion("stock_position =", value, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionNotEqualTo(String value) {
            addCriterion("stock_position <>", value, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionGreaterThan(String value) {
            addCriterion("stock_position >", value, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionGreaterThanOrEqualTo(String value) {
            addCriterion("stock_position >=", value, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionLessThan(String value) {
            addCriterion("stock_position <", value, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionLessThanOrEqualTo(String value) {
            addCriterion("stock_position <=", value, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionLike(String value) {
            addCriterion("stock_position like", value, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionNotLike(String value) {
            addCriterion("stock_position not like", value, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionIn(List<String> values) {
            addCriterion("stock_position in", values, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionNotIn(List<String> values) {
            addCriterion("stock_position not in", values, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionBetween(String value1, String value2) {
            addCriterion("stock_position between", value1, value2, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andStockPositionNotBetween(String value1, String value2) {
            addCriterion("stock_position not between", value1, value2, "stockPosition");
            return (Criteria) this;
        }

        public Criteria andPkOrgIsNull() {
            addCriterion("pk_org is null");
            return (Criteria) this;
        }

        public Criteria andPkOrgIsNotNull() {
            addCriterion("pk_org is not null");
            return (Criteria) this;
        }

        public Criteria andPkOrgEqualTo(String value) {
            addCriterion("pk_org =", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotEqualTo(String value) {
            addCriterion("pk_org <>", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgGreaterThan(String value) {
            addCriterion("pk_org >", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgGreaterThanOrEqualTo(String value) {
            addCriterion("pk_org >=", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLessThan(String value) {
            addCriterion("pk_org <", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLessThanOrEqualTo(String value) {
            addCriterion("pk_org <=", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLike(String value) {
            addCriterion("pk_org like", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotLike(String value) {
            addCriterion("pk_org not like", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgIn(List<String> values) {
            addCriterion("pk_org in", values, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotIn(List<String> values) {
            addCriterion("pk_org not in", values, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgBetween(String value1, String value2) {
            addCriterion("pk_org between", value1, value2, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotBetween(String value1, String value2) {
            addCriterion("pk_org not between", value1, value2, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(String value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(String value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(String value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(String value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(String value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLike(String value) {
            addCriterion("create_time like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotLike(String value) {
            addCriterion("create_time not like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<String> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<String> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(String value1, String value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(String value1, String value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andStockNameIsNull() {
            addCriterion("stock_name is null");
            return (Criteria) this;
        }

        public Criteria andStockNameIsNotNull() {
            addCriterion("stock_name is not null");
            return (Criteria) this;
        }

        public Criteria andStockNameEqualTo(String value) {
            addCriterion("stock_name =", value, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameNotEqualTo(String value) {
            addCriterion("stock_name <>", value, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameGreaterThan(String value) {
            addCriterion("stock_name >", value, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameGreaterThanOrEqualTo(String value) {
            addCriterion("stock_name >=", value, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameLessThan(String value) {
            addCriterion("stock_name <", value, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameLessThanOrEqualTo(String value) {
            addCriterion("stock_name <=", value, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameLike(String value) {
            addCriterion("stock_name like", value, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameNotLike(String value) {
            addCriterion("stock_name not like", value, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameIn(List<String> values) {
            addCriterion("stock_name in", values, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameNotIn(List<String> values) {
            addCriterion("stock_name not in", values, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameBetween(String value1, String value2) {
            addCriterion("stock_name between", value1, value2, "stockName");
            return (Criteria) this;
        }

        public Criteria andStockNameNotBetween(String value1, String value2) {
            addCriterion("stock_name not between", value1, value2, "stockName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}